<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="u" uri="http://nixis.de/jsp/tags/core" %>
<%@ page contentType="text/html; charset=UTF-8" %>

<%@ include file="/WEB-INF/views/misc/cache.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
    <head>
        <title><sitemesh:write property='title'/> - First Friend</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="shortcut icon" href="<u:url value="/images/favicon.ico"/>" />
        <jsp:include page="/WEB-INF/views/layout/scripts.jsp" />
        <jsp:include page="/WEB-INF/views/layout/styles.jsp" />

        <sitemesh:write property='head'/>
    </head>
    <body>
        <jsp:include page="/WEB-INF/views/misc/ajax.jsp" />
        
        <div id="header">
            <div class="topbar">
                <jsp:include page="/WEB-INF/views/layout/topbar.jsp" />
            </div>
            <h1><a title="Go to homepage" href="<u:url value="/" />" class="no-text-fix"><span>First Friend</span></a></h1>
            <ul id="menu">
                <li><a title="List all filed tasks" href="<u:url value="/article/list"/>">tasks</a></li>
                <c:choose>
                    <c:when test="${currentUser != null}">
                        <li><a title="Show your to-do list" href="<u:url value="/todo"/>">my todos</a></li>
                        <li><a title="Show articles you bookmarked" href="<u:url value="/bookmark"/>">bookmarks</a></li>
                        <c:if test="${currentUser.admin}">
                            <li><a title="Create a new task" href="<u:url value="/article/create"/>">create task</a></li>
                        </c:if>
                    </c:when>
                </c:choose>
            </ul>
        </div>
        <div id="content">
            <div id="message" style="display: none"></div>
            <sitemesh:write property='body'/>
        </div>
        <div id="footer">
            <small>
                Created by Burcu Boran, Markus Götz, Nico Rehwaldt and Sina Tamana <br/>
                This is a Knowledge Engineering 2010 / Decission Support Systems 2011 course work<br/>
                Blekinge Tekniska Högskola
            </small>
        </div>
    </body>
</html>
